package com.fengziyu.lib_recyclerview_fzy.net

import com.fengziyu.lib_recyclerview_fzy.entity.GoodsResponse
import com.fengziyu.lib_recyclerview_fzy.entity.LoginResponse
import okhttp3.RequestBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {

    @POST("/user/loginjson")
    fun login(@Body body: RequestBody): Call<LoginResponse>

    @GET("goods/info")
    fun getGoods(@Query("category_id")categoryId: Int ,
                 @Query("currentPage")currentPage: Int ,
                 @Query("pageSize")pageSize: Int): Call<GoodsResponse>

}